
#libzmodem.a
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-DNFGVMIN)
add_definitions(-DLOCALEDIR="/user/local/share/locale/")

aux_source_directory(./lib DIR_LIB_SRCS)
list(REMOVE_ITEM DIR_LIB_SRCS ./lib/mkdir.c)
include_directories(./)
add_library(zmodem STATIC ${DIR_LIB_SRCS})
#lrz
include_directories(./lib)
aux_source_directory(./src lrz_src)
list(REMOVE_ITEM lrz_src ./src/lsz.c ./src/ansi2knr.c)
add_executable(lrz ${lrz_src})
target_link_libraries(lrz zmodem)
#lsz
aux_source_directory(./src lsz_src )
list(REMOVE_ITEM lsz_src ./src/lrz.c ./src/ansi2knr.c)
add_executable(lsz ${lsz_src} )
target_link_libraries(lsz zmodem)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/)
